package com.ithinks.flow.common.utils.protocol.socket.aio.server;

/**
 * @Description
 * @ClassName AioServer
 * @Author MR.LI
 * @date 2020.12.07 18:12
 */
public class AioServer {

    private static AioServerHandler serverHandler;
    public volatile static long clientCount = 0;

    public static void start(){
        if(serverHandler != null)
            return;
            serverHandler = new AioServerHandler(8889);
            new Thread(serverHandler, "server").start();
    }

    public static void main(String[] args) {
        AioServer.start();
    }
}
